<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>乐淘首页</title>
		<link rel="stylesheet" href="assets/mui/css/mui.min.css" />
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" href="assets/font-awesome-4.5.0/css/font-awesome.min.css" />	
		<link rel="stylesheet" href="css/search.css">
	</head>
	<body>
		<div class="container">
			<div class="lt_topnav">
				<a class="btn_left" href="javascript:;history.back()"><span class="fa fa-arrow-left"></span></a>				
				<h3>搜索中心</h3>
			</div>
			<div class="lt_content">
                    <div class="lt_wrapper">
						<div class="mui-scroll-wrapper">
							<div class="mui-scroll">
								 <!-- 搜索框 -->
								<div class="li_search">
									<form action="">
										<input type="search" class="search_input" name="" placeholder="请输入搜索内容">
										<a href="javascript:;" class="search_btn">搜索</a>
									</form>
								</div>
									<!-- 搜索历史 -->
								<div class="lt_history">
									<!-- 动态渲染 -->
								</div>	
							</div>
						</div>
                    </div>
            </div>
			<div class="lt_tabnav">
				<ul>
					<li><a href="index.html"><span class="fa fa-home"></span><p>首页</p></a></li>
	                <li><a href="category.html"><span class="fa fa-bars"></span><p>分类</p></a></li>
	                <li><a href="user/cart.html"><span class="fa fa-shopping-cart"></span><p>购物车</p></a></li>
	                <li><a href="user/index.html"><span class="fa fa-user"></span><p>会员中心</p></a></li>
				</ul>
			</div>
		</div>
		<script type="text/template" id="history">
			<div class="mui-clearfix">
				<% if(list.length > 0) {%>
				<span class="mui-pull-left">搜索历史</span>
				<span class="mui-pull-right fa fa-trash">清空记录</span>
				<% }else{%>
					<span class="mui-pull-left">暂无搜索历史记录</span>
				<% }%>
			</div>
			<ul>
				<% if(list.length > 0) {%>
					<% for(var i = list.length-1; i >=0; i--){%>
				<li><a href="searchList.html?key=<%=list[i]%>"><span><%=list[i]%></span></a><span class="mui-icon mui-icon-closeempty" data-index="<%=i%>"></span></li>
				<% }%>
				<% }%>
			</ul>
		</script>
		<script src="assets/mui/js/mui.min.js"></script>
		<script src="js/common.js"></script>
		<script src="assets/zepto/zepto.min.js"></script>
		<script src="assets/artTemplate/template-native.js"></script>
		<script src="js/search.js"></script>
		
	</body>
</html>
